<template>
    <div class="panel">
        <div class="container">
            <div class="head">
                <!-- 主、副标题 -->
                <h3>{{ title }}<small>{{ subTitle }}</small></h3>
            </div>
            <!-- 主题内容 -->
            <slot></slot>
        </div>
    </div>
</template>

<script lang='ts' setup>
    // 定义props
    defineProps({
        title: {
            type: String
        },
        subTitle: {
            type: String
        }
    })

</script>

<style lang="scss" scoped>
.home-panel {
  background-color: #fff;

  .head {
    padding: 40px 0;
    display: flex;
    align-items: flex-end;

    h3 {
      flex: 1;
      font-size: 32px;
      font-weight: normal;
      margin-left: 6px;
      height: 35px;
      line-height: 35px;

      small {
        font-size: 16px;
        color: #999;
        margin-left: 20px;
      }
    }
  }
}
</style>